package name.gauravmadan.mdg.pim;

import java.io.Serializable;

public class Attribute implements Serializable{
	
	private static final long serialVersionUID = 5188117964713806063L;
	private Integer id;
	private String attributeName;
	private String attributeDesc;
	private String javaDataType;
	private Integer maxLength;
	private Boolean isMandatory;
	private String columnName;
	private String sqlDataType;
	// Attribute on the ZERO'th index is assumed to be the primary key
	private Integer indexInAttributeList;
	private Integer parentClassId;
	
	public Attribute(){
		super();
	}
	public Attribute(String attributeDesc, String attributeName, Integer id,
			Boolean isMandatory, String javaDataType, Integer maxLength, String columnName,
			String sqlDataType, Integer indexInAttributeList) {
		super();
		this.attributeDesc = attributeDesc;
		this.attributeName = attributeName;
		this.id = id;
		this.isMandatory = isMandatory;
		this.javaDataType = javaDataType;
		this.maxLength = maxLength;
		this.columnName = columnName;
		this.sqlDataType = sqlDataType;
		this.indexInAttributeList = indexInAttributeList;
	}
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}

	public String getAttributeName() {
		return attributeName;
	}
	public void setAttributeName(String attributeName) {
		this.attributeName = attributeName;
	}
	public String getAttributeDesc() {
		return attributeDesc;
	}
	public void setAttributeDesc(String attributeDesc) {
		this.attributeDesc = attributeDesc;
	}
	public String getJavaDataType() {
		return javaDataType;
	}
	public void setJavaDataType(String javaDataType) {
		this.javaDataType = javaDataType;
	}
	public Integer getMaxLength() {
		return maxLength;
	}
	public void setMaxLength(Integer maxLength) {
		this.maxLength = maxLength;
	}
	public Boolean getIsMandatory() {
		return isMandatory;
	}
	public void setIsMandatory(Boolean isMandatory) {
		this.isMandatory = isMandatory;
	}

	public String getColumnName() {
		return columnName;
	}

	public void setColumnName(String columnName) {
		this.columnName = columnName;
	}

	public String getSqlDataType() {
		return sqlDataType;
	}

	public void setSqlDataType(String sqlDataType) {
		this.sqlDataType = sqlDataType;
	}

	public Integer getIndexInAttributeList() {
		return indexInAttributeList;
	}

	public void setIndexInAttributeList(Integer indexInAttributeList) {
		this.indexInAttributeList = indexInAttributeList;
	}
	public Integer getParentClassId() {
		return parentClassId;
	}
	public void setParentClassId(Integer parentClassId) {
		this.parentClassId = parentClassId;
	}
	
}
